Skip to content

Conversation

zerwes
Copy link
Contributor

@zerwes zerwes commented Sep 22, 2025

see #852 (closed by accident while trying to rebase to force pushes on master using the github UI)

General information

Avoid failing notifications observed in the raw edition after upgrade to 2.4.x

Bug reports

In some cases notifications will fail in the raw edition due to some missing VARs with the error
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'PREVIOUSSERVICEHARDSTATE'

It seems the bug affects raw and enterprise installations (see #852 (comment))

More details can be found in https://forum.checkmk.com/t/after-upgrade-from-2-3-x-to-2-4-x-raw-sporadically-failing-notifications-with-jinja2-exceptions-undefinederror-dict-object-has-no-attribute-previousservicehardstate/55347

Proposed changes

The proposed changes just assure undefined values for the PREVIOUS[SERVICE|HOST]HARDSTATE in the jinja2 mail notification templates are set to some somehow sane defaults in order to avoid failing notifications.

Copy link

github-actions bot commented Oct 7, 2025

Thank you for your contribution. This pull request has been marked as stale as it has not passed the automated tests and there was no activity for the last 14 days.
Please take a look at the ‘Checks’ section for details on the test results and make the necessary changes.

This pull request will be closed due to inactivity after 60 days, if no action is taken.

@github-actions github-actions bot added the Stale Scheduled for auto-close label Oct 7, 2025
@zerwes
Copy link
Contributor Author

zerwes commented Oct 7, 2025

for the record: even after bringing the PR branch up to date with master, the test fail due to some setup errors, not caused by the changes made in the PR

@github-actions github-actions bot removed the Stale Scheduled for auto-close label Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant